﻿//------------------------------------------------------------------------------
// <copyright file="RpcRequest.cs" company="Microsoft">
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>
//------------------------------------------------------------------------------

namespace Microsoft.Internal.GamesTest.Rpc.Client
{
    using System.Runtime.Serialization;

    /// <summary>
    /// A message object used to encapsulate a request sent to an RpcServer to invoke a remote method.
    /// </summary>
    [DataContract]
    internal class RpcRequest
    {
        /// <summary>
        /// Gets or sets the name of the remote method to be invoked.
        /// </summary>
        [DataMember(Name = "methodName")]
        public string MethodName { get; set; }

        /// <summary>
        /// Gets or sets the parameters to be passed to the remote method.
        /// </summary>
        [DataMember(Name = "parameters")]
        public RpcArchive Parameters { get; set; }

        /// <summary>
        /// Gets or sets the unique identifier for this request.
        /// </summary>
        [DataMember(Name = "requestId")]
        public uint RequestId { get; set; }
    }
}
